/*
编写 : Hexh
时间 : 2012-6-15 9:02:48
*/
using System;
using System.Collections.Generic;
using FsCarInfo.Core.Entity;
using HMIS.FrameWork;
using HMIS.FrameWork.DomainBase;

namespace FsCarInfo.Facade
{
	/// <summary>
	///	 the interface of IFsCarInventoryFacade
	/// </summary>
	public interface IFsCarInventoryFacade : IDomainFacade
	{

		FsCarInventory Get(string id);

		FsCarInventory Load(string id);

		void SaveOrUpdate(FsCarInventory entity);

		void Delete(string id);

		void PhysicsDelete(string id);

		bool IsFieldExist(string fieldName, string fieldValue, string id);

		bool IsFieldExistWhere(string fieldName, string fieldValue, string id, string where);

		IList<FsCarInventory> GetAll();

		IList<FsCarInventory> GetPlist(string deptId, string type, string state, int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);

		string CreateNewInventory(string deptId, string type, string userId);
	}
}
